package com.poker.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@Data
@TableName("HI_LOGIN_LOG")
@ApiModel(value = "登录记录",description = "登录记录")
public class LoginLog {

    @ApiModelProperty(value="主键")
    @TableId(value="ID",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value="密码")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value="登录时间")
    @TableField("LOGIN_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date loginTime;

    @ApiModelProperty(value="浏览器")
    @TableField("BROWSER")
    private String browser;

    @ApiModelProperty(value="ip地址")
    @TableField("IP")
    private String ip;


}